package rpcx_media_server

// HttpApiAllStreamStatResponse 媒体中心 http api 获取流状态列表接口返回
type HttpApiAllStreamStatResponse struct {
	Code             int
	Msg              string
	Data             []HttpApiStreamStatResponse
	TotalStreamCount int64
}

// HttpApiStreamStatResponse 媒体中心流状态
type HttpApiStreamStatResponse struct {
	App              string
	OpenPortTime     string
	Port             int
	Ssrc             string
	Stream           string
	StreamType       int
	TotalReaderCount int
}

type HttpApiGetPortStatusResponse struct {
	App              string `json:"app"`
	Code             int    `json:"code"`
	Msg              string `json:"msg"`
	OpenPortTime     string `json:"openPortTime"`
	Port             int    `json:"port"`
	PortOpenStatus   int    `json:"portOpenStatus"`
	Ssrc             string `json:"ssrc"`
	StreamId         string `json:"streamId"`
	StreamStatus     int    `json:"streamStatus"`
	StreamType       int    `json:"streamType"`
	TotalReaderCount int    `json:"totalReaderCount"`
}

type HttpApiAddStreamProxyResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		Key string `json:"key"`
	} `json:"data"`
}

type HttpApiDelStreamProxyResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		IsDeleted bool `json:"isDeleted"`
	} `json:"data"`
}

type HttpApiStartMergeStreamResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}
